package com.it.mapper;


import com.it.entity.User;
import com.it.vo.RegisterVo;
import com.it.vo.UserInfoVo;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2023-09-22
 */
public interface UserMapper{
    User findUserByUsernameAndPassword(@Param("username") String username, @Param("password") String password);
    User findUserByUsername(String username);
//    添加新用户
    void addUser(RegisterVo registerVo);
//    修改用户信息
    void updateUser(UserInfoVo userInfoVo);
//    删除用户
    void deleteUserByUserId(Long userId);
}
